package com.ruoyi.web.controller.workload;

import com.ruoyi.workload.domain.entity.WorkLoad;
import com.ruoyi.workload.service.WorkLoadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("workload")
public class workloadController {

    @Autowired
    WorkLoadService workLoadService;

    @GetMapping("list")
    public List<WorkLoad> workLoadList(){
        for (WorkLoad workLoad : workLoadService.workLoadList()) {
            System.out.println(workLoad);
        }
        workLoadService.getWorkLoadListByIdAndProject("","","");
        return null;
    }
}
